#if !defined(AFX_LOCFILEVIEW_H__D5A44350_3B3B_46A0_83D7_54AFCF192C2E__INCLUDED_)
#define AFX_LOCFILEVIEW_H__D5A44350_3B3B_46A0_83D7_54AFCF192C2E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LocFileView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CLocFileView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include "CustomList.h"

class CLocFileView : public CFormView
{
protected:
	CLocFileView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CLocFileView)

// Form Data
public:
	//{{AFX_DATA(CLocFileView)
	enum { IDD = IDD_LOC_FILE };
	CCustomList	m_LocalList;
	CComboBoxEx	m_LocalPath;
	CString	m_Localpath;
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:
CImageList m_ctImageList;

// Operations
public:
	CString getLocalPath();
	void Sort(int nCol = -1);
	bool BrowsDir(CString cPath);
	static int CALLBACK CompareFunc (LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
	BOOL RemoveDir(CString cPath);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLocFileView)
	public:
	virtual void OnInitialUpdate();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int m_nSortedCol;
	CWinThread* m_pFindLocFileThread;
	virtual ~CLocFileView();

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CLocFileView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnLocalBrows();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDblclkLocalList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRclickLocalList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnLocDel();
	afx_msg void OnLocUp();
	afx_msg void OnLocRefresh();
	afx_msg void OnLocMd();
	afx_msg void OnEndlabeleditLocalList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnLocRn();
	afx_msg void OnFileProp();
	afx_msg void OnColumnclickLocalList(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	afx_msg LRESULT OnLocFileList(WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LOCFILEVIEW_H__D5A44350_3B3B_46A0_83D7_54AFCF192C2E__INCLUDED_)
